package com.edianping.main;


import java.rmi.Remote;
import java.rmi.RemoteException;


public interface IRemoteMainTask  extends Remote {
	
	public long getCurrentPoolQueenSize() throws RemoteException;
	public long getCurrentPoolSize()  throws RemoteException;
    public void start() throws RemoteException;
    public void restart() throws RemoteException;
    public void cancel() throws RemoteException;
    public void stop() throws RemoteException;
    public void pause() throws RemoteException;
    public void resume() throws RemoteException;
    
	/**
	 * To get current server status
	 * 
	 * @return String status is a string message 
	 * @throws RemoteException
	 */
    public String status() throws RemoteException;
}
